import React from 'react'
import BusinessIndex from '@/components/Business/Index'
import BusinessLogin from '@/components/Business/Login'
import BusinessProfile from '@/components/Business/Profile'

// 路由列表 二级路由结构
const list = [
  {
    path: 'index',
    component: BusinessIndex,
    auth: true,
  },
  {
    path: 'Profile',
    component: BusinessProfile,
    auth: true,
  },
  {
    path: 'login',
    component: BusinessLogin,
  }
]

// 构建父级路由的组件结构
const Layout = () => <React.Router.Outlet />

// 构建顶级路由
const RouterList = [
  {
    path: '/business', //路由嵌套 父级路由
    component: Layout, //父组件
    children: list, //子路由结构
  }
]


export default RouterList
